package com.imooc.cloud.mall.practice.cartorder.feign;

import com.imooc.cloud.mall.practice.user.model.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * ClassName: UserFeignClient
 * Package: com.imooc.cloud.mall.practice.cartorder.feign
 *
 * @Author 马学兴
 * @Create 2024/3/11 14:45
 * @Version 1.0
 * Description:User的feignclient
 */
@FeignClient(value = "cloud-mall-user")
public interface UserFeignClient {//获取当前登录的user对象
    @GetMapping("/getUser")
    User getUser();
}
